package com.three.lab.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.three.lab.R;
import com.three.lab.bean.NewFriendBean;

import java.util.List;

public class NewFriendAdapter extends BaseQuickAdapter<NewFriendBean, BaseViewHolder> {

    public NewFriendAdapter(@Nullable List<NewFriendBean> data) {
        super(R.layout.item_list_new_friend,data);
    }

    public NewFriendAdapter() {
        super(R.layout.item_list_new_friend);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, NewFriendBean item) {
        helper.setText(R.id.tv_name,"" + item.getName());
    }
}
